﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GHRMS.MODEL
{
    public class HealthInfo : RecordInfo
    {
        private int health_seq;
        private EmployeeInfo emp_seq;
		private string description;
		private Nullable<DateTime> save_date;
		private Nullable<DateTime> update_date;

        public HealthInfo()
        {
        }

        public HealthInfo(int Sequence)
        {
            this.Sequence = Sequence;
        }

        public HealthInfo(int Sequence, EmployeeInfo Employee, string Description, string Remark,Nullable<DateTime> SaveDate, Nullable<DateTime> UpdateDate = null)
        {
            this.Sequence = Sequence;
            this.Employee = Employee;
            this.Description = Description;
            this.Remarks = Remark;
            this.SaveDate = SaveDate;
	        this.UpdateDate = UpdateDate;
        }

		public string IssueType
        { get; set; }

        public int Sequence
        {
            get { return health_seq; }
            set { health_seq = value; }
        }

        public EmployeeInfo Employee
        {
            get { return emp_seq; }
            set { emp_seq = value; }
        }

		public Nullable<DateTime> SaveDate
		{
			get { return save_date; }
			set { save_date = value; }
		}
		public Nullable<DateTime> UpdateDate
		{
			get { return update_date; }
			set { update_date = value; }
		}

        public string Description
        {
            get { return description; }
            set { description = value; }
        }
	    public int EmployeeSequence
		{
			get { return Employee.Sequence; }
		    set { Employee = new EmployeeInfo(value); }
	    }
    }
}
